package com.cms.manage.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cms.manage.common.ConmonConfig;
import com.cms.manage.dao.CmsClassfyMapper;
import com.cms.manage.model.CmsClassfy;
import com.cms.manage.service.ClassfyService;

/**
 * Created by sgy on 2017/4/7.
 */
@Service
public class ClassfyServiceImpl extends BaseService<CmsClassfy> implements ClassfyService {

	
    @Autowired
    private  CmsClassfyMapper cmsClassfyMapper;
	
	
	@Override
	public Map<String, Object> getClassfys(Map<String, String> data) {
		Map<String, Object> result = ConmonConfig.getResultMap();	
		StringBuffer message = new StringBuffer(); 
		CmsClassfy cmsClassfy = new CmsClassfy();
		cmsClassfy.setStatus(new Short("1"));	
	    List<CmsClassfy> res = cmsClassfyMapper.select(cmsClassfy);
		result.put("message", message.toString());
		result.put("data", res);
		return result;
	}



    

	

	
	
	
   
    
  
}